package com.jinshan.exception;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义异常类, 继承自RuntimeException, 有改异常的话, 事务会自动回滚
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EduException extends RuntimeException {
    @ApiModelProperty(value = "异常码")
    private Integer code;
    @ApiModelProperty(value = "异常信息")
    private String message;
}
